define([ "PDUtilDir/grid", "PDUtilDir/searchBlock" ],
		function(Grid, SearchBlock) {

			function init(cache, searchObj) {
				SearchBlock.init('searchBlockId');
				// 初始化
				return Grid({
                    id : "CTOrderGirdDivId",
                    pageSize : 10,
                    index : true,
                    multi : true,
                    pagination : true,
                    cache : false,
                    layout : [ {
                        name : "车队名称",
                        field : "receiveDeptName",
                        sort : true
                    }, {
                        name: "订单号",
                        field: "carReserveId"
                    }, {
                        name : "修单前价格",
                        field : "totalCost",
                        width : "10%"
                    }, {
                        name : "修单后价格",
                        field : "updateTotalCost",
                        width : "10%"
                    }, {
                        name: "状态",
                        field: "status",
                        format: function (e) {
                            return cache.statuMap.get(e.row.status);
                        }
                    }, {
                        name : "创建时间",
                        sort : true,
                        field : "createTime"
                    }/*, {
                        name : "操作",
                        field : "id",
                        width: '100px',
                        format : function(e) {
                            return '<a href="javascript:angular.element(\'#CTOrderGirdDivId\').scope().reserveInfoSupport.run(\'' + e.row.id + '\')">预定信息</a>';
                        }
                    }*/ ],
                    toolbar : [
                        {
                            name : "查询",
                            icon : "fa fa-search",
                            callback : function(event) {
                                searchObj.run();
                            }
                        }
                    ],
                    data : {
                        type : "URL",
                        value : getServer()
                        + "/flea/hclv/car/reserve/update/apply/mySendApply.htmls"
                        // + "/flea/hclv/serviceOrg/queryAllServiceOrgPage.htmls"
                    }
                });
			}
			return {
				init : init
			}
		});